﻿namespace System
{
    public enum RelationType
    {
        MainForeign,
        ForeignMain,
    }

    public enum PersistOptions
    {
        Full,
        IncludeChildren,
        IncludeChildrenOnly,
        IncludeReference,
        IncludeReferenceOnly,
        IncludeChildrenAndReferenceOnly,
        IncludeChildrenOnlyAndReferenceOnly,
        IncludeChildrenOnlyAndReference,
        SelfOnly,
        Default,
    }

    public enum SortType
    {
        Desc,
        Asc,
    }

    public enum DBType
    {
        Sql,       
        Access,
        Oracle,
        Sql2005,
    }

    /// <summary>
    /// 数据模型类型
    /// </summary>    
    public enum ModelType
    {
        /// <summary>
        /// 表
        /// </summary>
        Table,
        /// <summary>
        /// 视图
        /// </summary>
        View,
        /// <summary>
        /// 复合数据
        /// </summary>
        Data
    }

    /// <summary>
    /// 对象中属性类型
    /// </summary>
    public enum FieldType
    {
        /// <summary>
        /// 一般基本数据
        /// </summary>
        Normal,
        /// <summary>
        /// 实体对象
        /// </summary>
        Model,
        /// <summary>
        /// 实体对象列表
        /// </summary>
        ModelList,
    }

    /// <summary>
    /// 数据类型，分项目类型和系统类型
    /// </summary>
    public enum DataSourseType
    {
        System,
        Project,
    }
}